ostree_object_name_deserialize
ostree_object_to_string
ostree_object_from_string
-ostree_get_relative_object_path
ostree_get_xattrs_for_file
ostree_set_xattrs
ostree_content_stream_parse
*/
#define _OSTREE_LOOSE_PATH_MAX (256)
+char *
+_ostree_get_relative_object_path (const char *checksum,
+ OstreeObjectType type,
+ gboolean compressed);
+
void
_ostree_loose_path (char *buf,
const char *checksum,
suffix);
}
-/**
- * ostree_get_relative_object_path:
+/*
+ * _ostree_get_relative_object_path:
* @checksum: ASCII checksum string
* @type: Object type
* @compressed: Whether or not the repository object is compressed
* Returns: (transfer full): Relative path for a loose object
*/
char *
-ostree_get_relative_object_path (const char *checksum,
- OstreeObjectType type,
- gboolean compressed)
+_ostree_get_relative_object_path (const char *checksum,
+ OstreeObjectType type,
+ gboolean compressed)
{
GString *path;
gchar **out_checksum,
OstreeObjectType *out_objtype);
-char *ostree_get_relative_object_path (const char *checksum,
- OstreeObjectType type,
- gboolean compressed);
-
gboolean ostree_get_xattrs_for_file (GFile *f,
GVariant **out_xattrs,
GCancellable *cancellable,
compressed = (type == OSTREE_OBJECT_TYPE_FILE
&& ostree_repo_get_mode (self) == OSTREE_REPO_MODE_ARCHIVE_Z2);
- relpath = ostree_get_relative_object_path (checksum, type, compressed);
+ relpath = _ostree_get_relative_object_path (checksum, type, compressed);
ret = g_file_resolve_relative_path (self->repodir, relpath);
g_free (relpath);
}
else
{
- objpath = ostree_get_relative_object_path (checksum, objtype, TRUE);
+ objpath = _ostree_get_relative_object_path (checksum, objtype, TRUE);
obj_uri = suburi_new (pull_data->base_uri, objpath, NULL);
}